package org.domeos.framework.shiro.filter;

import org.domeos.framework.api.service.auth.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import com.gome.idcenter.spy.filter.DefaultSpyFilter;


public class LocalSpyFilter extends DefaultSpyFilter {
	@Autowired
    UserService userService;
	@Override
	public boolean isSkip(String servletPath) {
		if (servletPath.endsWith("login") || servletPath.endsWith("logout") || servletPath.endsWith("check")
				|| servletPath.endsWith("encrypt") || servletPath.endsWith("decrypt")
				|| servletPath.endsWith("index.jsp") || servletPath.endsWith("synldap")
				|| servletPath.endsWith("savebatchupdateurl") || servletPath.endsWith("track.jsp")) {
			return true;
		}
		return super.isSkip(servletPath);
	}
	@Override
	public boolean isSkipCheck(String servletPath) {
		return servletPath.endsWith("home") || servletPath.endsWith("show");
	}
}
